How to become an astronomer